<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/5/5 0005
  Time: 8:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="span10 last">
    <div class="topNav clearfix">
        <ul>
            <c:choose>
                <c:when test="${sessionScope.user != null}">
                    <li id="headerLogin" class="headerLogin" style="display: list-item;">
                        <a href="#">${sessionScope.user.username}</a>|
                    </li>
                    <li id="headerLogin" class="headerLogin" style="display: list-item;">
                        <a href="./leave">退出</a>|
                    </li>
                </c:when>
                <c:otherwise>
                    <li id="headerLogin" class="headerLogin" style="display: list-item;">
                        <a href="./login">登录</a>|
                    </li>

                </c:otherwise>
            </c:choose>
            <li id="headerRegister" class="headerRegister" style="display: list-item;">
                <a href="./register">注册</a>|
            </li>
            <li id="headerUsername" class="headerUsername"></li>
            <li id="headerLogout" class="headerLogout">
                <a>[退出]</a>|
            </li>
            <li>
                <a>会员中心</a>
                |
            </li>
            <li>
                <a>购物指南</a>
                |
            </li>
            <li>
                <a>关于我们</a>

            </li>
        </ul>
    </div>
    <div class="cart">
        <a href="./shopCart">购物车</a>
    </div>
    <div class="phone">
        客服热线:
        <strong>111111/22222</strong>
    </div>
</div>

<div class="span24">
    <ul class="mainNav">
        <c:forEach var="hot" items="${sessionScope.hotCategorys}" varStatus="status">
            <li>
                <a>${hot.cname}</a>
                |
            </li>
        </c:forEach>
    </ul>
</div>